#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    bool threeConsecutiveOdds(vector<int>& arr) {
        int count = 0;
        for (auto& e : arr)
        {
            if (e % 2 != 0 && ++count == 3)
                return true;
            else if (e % 2 == 0)
                count = 0;
        }
        return false;
    }
};